﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RemoteMessage
{
	public partial class FlyingForm : Form
	{
		public FlyingForm(string message)
		{
			InitializeComponent();
			this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Right - this.Width, Screen.PrimaryScreen.WorkingArea.Bottom - this.Height);
			label2.Text = message;
		}

		private void pictureBox1_Click(object sender, EventArgs e)
		{
			Close();
		}

		private void label2_MouseClick(object sender, MouseEventArgs e)
		{
			Close();
		}

		private void FlyingForm_MouseClick(object sender, MouseEventArgs e)
		{
			Close();
		}

		protected override void OnPaint(PaintEventArgs e)
		{
			this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Right - this.Width, Screen.PrimaryScreen.WorkingArea.Bottom - this.Height);
			base.OnPaint(e);
		}

		private void panel1_MouseClick(object sender, MouseEventArgs e)
		{
			Close();
		}		
	}
}
